package com.zhanghao.sdk.network;

import android.content.Context;

import com.zhanghao.sdk.callback.IZHHTTPCallback;

/**
 * 自用的网络请求工具
 * @author ZhangHao
 * @version 1.0.0
 */
public class ZHHttp implements IZHHttp {

    private static ZHHttp instance;
    private Context mContext;


    @Override
    public void setInterceptor(IZHHttpInterceptor interceptor) {

    }

    @Override
    public synchronized void request(ZHHttpArgs httpArgs, IZHHTTPCallback httpCallback) {

    }

    @Override
    public void setMainContext(Context context) {
        mContext = context;
    }


    public static ZHHttp getInstance() {
        if (instance == null) {
            instance = new ZHHttp();
        }
        return instance;
    }

}
